package com.ruoyi.examation.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 考场信息对象 exam_exam_venue
 *
 * @author Tellsea
 * @date 2025-09-28
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("exam_exam_venue")
public class ExamVenue extends BaseEntity {

    /**
     * 考场ID
     */
    private Long id;

    /**
     * 考试ID
     */
    @Excel(name = "考试ID")
    private Long examId;

    /**
     * 考场名称
     */
    @Excel(name = "考场名称")
    private String venueName;

    /**
     * 考场地址
     */
    @Excel(name = "考场地址")
    private String venueAddress;

    /**
     * 考试日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考试日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date examDate;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 考场容量
     */
    @Excel(name = "考场容量")
    private Long capacity;

    /**
     * 已报名人数
     */
    @Excel(name = "已报名人数")
    private Long registeredCount;

    /**
     * 考场状态（0可报名 1已满员 2已关闭）
     */
    @Excel(name = "考场状态", readConverterExp = "0=可报名,1=已满员,2=已关闭")
    private String venueStatus;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
